﻿<Window x:Class="Ezpay.UI.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vms="clr-namespace:Ezpay.UI.ViewModels"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:cal="http://www.codeplex.com/prism" TextOptions.TextRenderingMode="ClearType"
        Title="Ezpay" Width="1024" MinWidth="600" MinHeight="500" xmlns:c="clr-namespace:Ezpay.UI.Controls">
    
    <c:AutoLayoutGrid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Border Background="#DAEAFF" Padding="10">
            <DockPanel LastChildFill="False" >
                <ContentControl cal:RegionManager.RegionName="HistoryRegion" DockPanel.Dock="Left" Margin="0 0 10 0"/>
                <ContentControl cal:RegionManager.RegionName="SearchRegion" DockPanel.Dock="Left" Width="300" />
            </DockPanel>
        </Border>
        <c:AutoLayoutGrid Margin="10 10 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>

            <ContentControl cal:RegionManager.RegionName="NavigationRegion"/>
            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
                <ContentControl cal:RegionManager.RegionName="MainRegion" Margin="10 0 10 0"/>
            </ScrollViewer>
        </c:AutoLayoutGrid>
    </c:AutoLayoutGrid>
</Window>
